package com.nuoniu.sibanyun.service.crm;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nuoniu.sibanyun.entity.crm.CrmActivity;
import com.nuoniu.sibanyun.entity.dto.CrmActivityDto;
import com.nuoniu.sibanyun.entity.dto.CrmActivitySearchDto;
import com.nuoniu.sibanyun.entity.vo.CrmActivityVo;
import com.nuoniu.sibanyun.entity.vo.SelectVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author baiqiang
 * @since 2020-08-15
 */
public interface ICrmActivityService extends IService<CrmActivity> {

    /**
     * 分页查询
     * @param page
     * @param crmActivitySearchDto
     * @return
     */
    Page<CrmActivity> pageCrmActivity(Page page, CrmActivitySearchDto crmActivitySearchDto);

    /**
     * 保存
     * @param crmActivityDto
     */
    void saveActivity(CrmActivityDto crmActivityDto);

    /**
     * 详情
     * @param id
     * @return
     */
    CrmActivityVo detail(Integer id);

    /**
     * 批量删除
     * @param ids
     */
    void batchDelete(List<Integer> ids);

    /**
     * 检查是否存在
     * @param activityTitle
     * @return
     */
    boolean checkActivityTitle(Integer id,String activityTitle);

    /**
     * 获取公司 的市场活动
     * @return
     */
    List<SelectVo> listCompanyActivities();

}
